package org.jeecg.modules.flower.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.hpsf.Decimal;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 预出库单主表
 * @Author: jeecg-boot
 * @Date:   2022-06-27
 * @Version: V1.0
 */
@ApiModel(value="t_flower_outorder_pre对象", description="预出库单主表")
@Data
@TableName("t_flower_outorder_pre")
public class FlowerOutorderPre implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**预出库单号*/
	@Excel(name = "预出库单号", width = 15)
    @ApiModelProperty(value = "预出库单号")
    private String orderNo;

	/**出库时间*/
	@Excel(name = "出库时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "出库时间")
    private Date stockInTime;
	/**业务员*/
	@Excel(name = "业务员", width = 15)
    @ApiModelProperty(value = "业务员")
    private String stockOutUser;
	/**出库人id*/
	@Excel(name = "出库人id", width = 15)
    @ApiModelProperty(value = "出库人id")
    private String stockOutUserid;

    /**'客户id'*/
    @ApiModelProperty(value = "客户id")
    private String userid;
    /**'客户姓*/
    @Excel(name = "客户", width = 15)
    @ApiModelProperty(value = "客户")
    private String user;

    @Excel(name = "电话", width = 15)
    @ApiModelProperty(value = "电话")
    private String phone;
    @Excel(name = "地址", width = 15)
    @ApiModelProperty(value = "地址")
    private String address;
    @Excel(name = "交货方式", width = 15)
    @ApiModelProperty(value = "交货方式")
    private String toType;
    @Excel(name = "车号/联系方式", width = 15)
    @ApiModelProperty(value = "车号/联系方式")
    private String carno;

    //渠道
    @Excel(name = "渠道", width = 15,dicCode = "ch_channel")
    @Dict(dicCode = "ch_channel")
    @ApiModelProperty(value = "渠道")
    private String channel;

    //账号
    @Excel(name = "账号", width = 15,dicCode = "ch_account_no")
    @Dict(dicCode = "ch_account_no")
    @ApiModelProperty(value = "账号")
    private String accountno;

	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remarks;


    @Excel(name = "账期号", width = 15    )
    @ApiModelProperty(value = "账期号")
    private String period;

    @Excel(name = "账期状态", width = 15  )
    @ApiModelProperty(value = "账期状态")
    private String periodState;

    @Excel(name = "基地管理员", width = 15  )
    @ApiModelProperty(value = "基地管理员")
    private String baseMange;
    @TableField( updateStrategy = FieldStrategy.IGNORED)
    @Excel(name = "基地管理员时间" ,format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "基地管理员时间")
    private Date baseMangeTime;

    @Excel(name = "运管备案", width = 15  )
    @ApiModelProperty(value = "运管备案")
    private String pipMange;
    @TableField( updateStrategy = FieldStrategy.IGNORED)
    @Excel(name = "运管备案时间" ,format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "运管备案时间")
    private Date pipMangeTime;

    @Excel(name = "库管确认出库", width = 15  )
    @ApiModelProperty(value = "库管确认出库")
    private String storeSure;
    @TableField( updateStrategy = FieldStrategy.IGNORED)
    @Excel(name = "库管确认时间" ,format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "库管确认时间")
    private Date storeSureTime;

    @TableField( updateStrategy = FieldStrategy.IGNORED)
    @Excel(name = "提交审核时间" ,format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "提交审核时间")
    private Date topresstime;


    @Excel(name = "总数量", width = 15  )
    @ApiModelProperty(value = "总数量")
    private BigDecimal  totalnumber ;
    @Excel(name = "总金额", width = 15  )
    @ApiModelProperty(value = "总金额")
    private BigDecimal totalprice;

    /**创建日期*/
    @Excel(name = "创建日期", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**创建人*/
    @Excel(name = "创建人", width = 15,  dictTable = "sys_user",dicText = "realname",dicCode = "username")
    @Dict( dictTable = "sys_user",dicText = "realname",dicCode = "username")
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**状态（-1待出库，0已出库，1删除 ）*/

	@Excel(name = "状态", width = 15,replace = {"草稿_-1","审核中_0","删除_-2"})
    @ApiModelProperty(value = "状态（-1草稿，0审核中，1已出库， -2删除 ）")
    private Integer state;
}
